package com.example.pojo;

/**
 * ClassName: UserTest
 * Package: com.example.pojo
 * Description:
 *
 * @Author liu
 * @Create 2025/5/27 11:23
 * @ Version 1.0
 */
public class UserTest {
        public static void main(String[] args) {
            int choice = Userfunction.showMainMenu();
            if (choice < 1 || choice > 3) {
                System.out.println("输入错误，请重新输入");
            }
            if (choice == 3) {
                System.out.println("退出成功");
                return;
            }
            User user = Userfunction.login();
            switch (choice) {
                case 1:
                    Userfunction.adminFunctions(user);
                    break;
                case 2:
                    Userfunction.studentFunctions(user);
                    break;
            }
        }
    }

